import { createRouter, createWebHistory } from 'vue-router'
import HomeView from '../views/HomeView.vue'

const router = createRouter({
  history: createWebHistory(import.meta.env.BASE_URL),
  routes: [
    {
      path: '/',
      name: 'home',
      component: HomeView
    },
    {
      path: '/housetypeadd',
      component: () => import('../views/type/HouseTypeAdd.vue')
    },
    {
      path: '/housetypelist',
      component: () => import('../views/type/HouseTypeList.vue')
    },
    {
      path: '/housetypeupd',
      component: () => import('../views/type/HouseTypeUpd.vue')
    },
    {
      path: '/housenolist',
      component: () => import('../views/no/HouseNoList.vue')
    },
    {
      path: '/housenoadd',
      component: () => import('../views/no/HouseNoAdd.vue')
    }
  ]
})

export default router
